/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2022-01-10 13:24:42
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-03-31 14:42:12
 */
import request from "@/utils/request.js";
import { param } from "../../utils";


// - 项目管理-项目列表
export const projectList = params => {
    return request({
        method: 'get',
        url: '/task/project/list',
        params
    })
}

// - 项目管理-项目新建/修改
export const editProject = data => {
    return request({
        method: 'post',
        url: '/task/project/edit',
        data
    })
}

// - 项目管理-项目删除
export const deleteProject = params => {
    return request({
        method: 'delete',
        url: '/task/project/delete',
        params
    })
}
// - 项目管理-项目更换负责人
export const changeDirector = params => {
    return request({
        method: 'get',
        url: '/task/project/changeDirector',
        params
    })
}
// - 项目管理-项目完成
export const finish = params => {
    return request({
        method: 'get',
        url: '/task/project/finish',
        params
    })
}

// - 项目管理-清单列表
export const orderList = params => {
    return request({
        method: 'get',
        url: '/task/project/orderList',
        params
    })
}

// - 项目管理-清单新增/修改
export const orderEdit = data => {
    return request({
        method: 'post',
        url: '/task/project/orderEdit',
        data
    })
}
// - 项目管理-删除清单
export const orderDelete = params => {
    return request({
        method: 'delete',
        url: '/task/project/orderDelete',
        params
    })
}

// - 项目管理-子任务列表
export const subTaskList = params => {
    return request({
        method: 'get',
        url: '/task/project/taskList',
        params
    })
}
// - 项目管理-任务新增
export const subTaskAdd = data => {
    return request({
        method: 'post',
        url: '/task/project/taskAdd',
        data
    })
}

// - 项目管理-导入
export const importData = data => {
    return request({
        method: 'post',
        url: '/task/project/importData',
        data
    })
}
// - 项目管理-导出模板
export const exportTemplate = data => {
    return request({
        method: 'post',
        url: '/task/project/exportTemplate',
        data
    })
}

// - 项目管理-导出
export const exportData = data => {
    return request({
        method: 'post',
        url: '/task/project/exportData',
        data
    })
}

// 复制项目
export const copyProject = data => {
    return request({
        method: 'post',
        url: '/task/project/copy',
        data
    })
}
